{extend name="common/base" /}
{block name="title"}banner列表{/block}
{block name="main"}
<script src="/ad/js/banner/b_list.js"></script>
<!-- Navigation -->
<div id="page-wrapper">
    <div class="col-md-12 graphs">
        <div class="xs">
            <h3>banner列表</h3>
            <div class="bs-example4" data-example-id="contextual-table">
                <h5 ><a href="{:url('Banner/b_add')}"><span class="label label-success">添加banner</span></a></h5>
                <div class="table-responsive">
                    <table class="table">
                        <thead>
                        <tr>
                            <th>#</th>
                            <th>缩略图</th>
                            <th>banner名称</th>
                            <th>添加时间</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        {volist name="data" id="m" key="k"}
                        <tr>
                            <th scope="row">{$k}</th>
                            <td><img src="{$m['b_img']}" style="width:40px;"/></td>
                            <td>{$m.b_title}</td>
                            <td>{$m.b_time|date='Y-m-d',###}</td>
                            <td>
                                <h5><a href="{:url('Banner/b_add',array('b_id'=>$m['b_id']))}"><span class="label label-primary">编辑</span></a>&nbsp;
                                    <a href="javascript:void(0)" data-url="{:url('Banner/b_delete')}" data-id="{$m['b_id']}" class="b_delete"><span class="label label-danger">删除</span></a></h5>
                            </td>
                        </tr>
                        {/volist}

                        </tbody>
                    </table>
                </div>
                <div style="text-align:center;">{$data -> render()}</div>
            </div>
        </div>
    </div>
    {/block}


